lib/bsd_ptyopen.c